-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce Polaris Admin Tool (with bootstrap and purge commands) #605
Conversation
6a50ff4
to
9426e7b
Compare
9426e7b
to
43fb4ea
Compare
43fb4ea
to
31aedd4
Compare
53da2ac
to
21fc9dd
Compare
21fc9dd
to
4020a32
Compare
4020a32
to
1255c84
Compare
Note: documentation for the tool will come in #700. |
|
||
public abstract class BaseCommand implements Callable<Integer> { | ||
|
||
public static final Integer EXIT_CODE_BOOTSTRAP_ERROR = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not use 2
(and 1
) here - it has a special meaning for some shells ("Misuse of shell built-in...").
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with 3 and 4.
|
||
@Override | ||
public String[] getVersion() throws Exception { | ||
URL resource = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use PolarisVersion
and not do the resource-dance.
# under the License. | ||
# | ||
|
||
polaris.version=${polarisVersion} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need this - use PolarisVersion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM - just replace the version-dance with PolarisVersion
.
As a follow up - maybe worth to add some commands to dump the NOTICE/LICENSE/LICENSE-BINARY-DIST files (accessible via PolarisVersion
as well).
Code looks quite familiar though ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome :)
Introduces a new module,
polaris-quarkus-admin
with maintenance commands such asbootstrap
andpurge
.For the
bootstrap
command, this PR creates a way for the command to pass an instance ofPolarisBootstrapCredentials
to the meta store, thus avoiding the need for environment variables completely.